package com.csu.mall.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csu.mall.product.entity.CategoryEntity;
import com.csu.mall.product.vo.CatelogVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品三级分类
 * 
 * @author zhenhuanli
 * @email 743879362@qq.com
 * @date 2022-09-16 11:42:54
 */
@Mapper
public interface CategoryDao extends BaseMapper<CategoryEntity> {

    List<CategoryEntity> selectCategory();

    Long getParentCid(@Param("curId") Long curId);

    List<CatelogVo> selectCatelogVo(Long brandId);

    List<CategoryEntity> getLevelCategories(@Param("level") int level);

}
